<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑教材 - 教材管理</title>
    <link href="../../assets/css/tailwind.css" rel="stylesheet">
    <link href="../../assets/css/font-awesome.min.css" rel="stylesheet">
    <script src="../../assets/js/chart.umd.min.js"></script>
</head>

<body class="bg-gray-100 font-sans text-gray-800">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm sticky top-0 z-50 transition-all duration-300">
        <div class="container mx-auto px-0 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <button id="sidebar-toggle" class="lg:hidden text-gray-500 hover:text-primary transition-colors">
                    <i class="fa fa-bars text-xl"></i>
                </button>
                <h1 class="text-xl font-bold text-primary flex items-center">
                    <i class="fa fa-book mr-2"></i>
                    <span>睿途教育</span>
                </h1>
            </div>

            <div class="hidden md:flex items-center space-x-6">
                <!-- 导航菜单 -->
                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-tachometer mr-1"></i> 控制面板
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div
                        class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-dashboard mr-2"></i> 仪表盘
                            </a>
                            <a href="dashboard/data-overview.html"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-chart-line mr-2"></i> 数据概览
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-tasks mr-2"></i> 任务管理
                            </a>
                        </div>
                    </div>
                </div>

                <div class="relative group">
                    <a href="#" class="text-gray-600 font-medium border-b-2 border-primary pb-1 flex items-center">
                        <i class="fa fa-book mr-1"></i> 教材管理
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div
                        class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-list mr-2"></i> 版本管理
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-sitemap mr-2"></i> 章节管理
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-lightbulb-o mr-2"></i> 知识点管理
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-primary bg-primary/10 font-medium">
                                <i class="fa fa-exchange mr-2"></i> 版本对比
                            </a>
                        </div>
                    </div>
                </div>

                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-database mr-1"></i> 题库管理
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div
                        class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-question-circle mr-2"></i> 题目管理
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-tags mr-2"></i> 标签管理
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-filter mr-2"></i> 筛选规则
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-upload mr-2"></i> 批量导入
                            </a>
                        </div>
                    </div>
                </div>

                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-files-o mr-1"></i> 组卷系统
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div
                        class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-magic mr-2"></i> 智能组卷
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-edit mr-2"></i> 手动组卷
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-copy mr-2"></i> 试卷模板
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-history mr-2"></i> 历史试卷
                            </a>
                        </div>
                    </div>
                </div>

                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-bar-chart mr-1"></i> 数据分析
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div
                        class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-chart-pie mr-2"></i> 学习分析
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-chart-bar mr-2"></i> 成绩统计
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-chart-line mr-2"></i> 趋势分析
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-file-text mr-2"></i> 报告生成
                            </a>
                        </div>
                    </div>
                </div>

                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-cog mr-1"></i> 系统设置
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div
                        class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-users mr-2"></i> 用户管理
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-shield mr-2"></i> 权限设置
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-database mr-2"></i> 数据备份
                            </a>
                            <a href="#"
                                class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-cogs mr-2"></i> 系统配置
                            </a>
                        </div>
                    </div>
                </div>
            </div>

            <div class="flex items-center space-x-4">
                <div class="relative">
                    <input type="text" placeholder="搜索教材、章节或知识点..."
                        class="pl-10 pr-4 py-2 rounded-full bg-gray-100 focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all w-40 lg:w-64">
                    <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                </div>

                <div class="relative">
                    <button class="text-gray-500 hover:text-primary transition-colors">
                        <i class="fa fa-bell text-xl"></i>
                        <span
                            class="absolute -top-1 -right-1 bg-danger text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
                    </button>
                </div>

                <div class="flex items-center space-x-2 cursor-pointer group">
                    <img src="https://picsum.photos/id/64/40/40" alt="用户头像"
                        class="w-8 h-8 rounded-full object-cover border-2 border-transparent group-hover:border-primary transition-all">
                    <span class="hidden md:inline font-medium">张老师</span>
                    <i class="fa fa-angle-down text-gray-400 group-hover:text-primary transition-colors"></i>
                </div>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="flex-1 container mx-auto px-4 py-6">
        <!-- 面包屑导航 -->
        <div class="flex items-center text-sm text-gray-500 mb-4">
            <a href="#" class="hover:text-primary">首页</a>
            <i class="fa fa-angle-right mx-2 text-gray-300"></i>
            <a href="#" class="hover:text-primary">教材管理</a>
            <i class="fa fa-angle-right mx-2 text-gray-300"></i>
            <span class="text-primary font-medium">编辑教材</span>
        </div>

        <!-- 页面标题 -->
        <div class="mb-6">
            <div class="flex flex-col md:flex-row md:items-end justify-between">
                <div>
                    <h2 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-gray-800">编辑教材</h2>
                    <p class="text-gray-500 mt-1">完善教材信息和章节结构</p>
                </div>
                <div class="mt-4 md:mt-0 flex space-x-3">
                    <button
                        class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-4 py-2 rounded-lg transition-colors flex items-center">
                        <i class="fa fa-eye mr-2"></i> 预览
                    </button>
                    <button
                        class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-4 py-2 rounded-lg transition-colors flex items-center">
                        <i class="fa fa-times mr-2"></i> 取消
                    </button>
                    <button
                        class="bg-primary hover:bg-primary/90 text-white px-4 py-2 rounded-lg transition-colors flex items-center">
                        <i class="fa fa-save mr-2"></i> 保存
                    </button>
                </div>
            </div>
        </div>

        <!-- 教材编辑表单 -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
            <!-- 左侧：基本信息 -->
            <div class="lg:col-span-2 space-y-6">
                <!-- 教材基本信息 -->
                <div class="bg-white rounded-lg shadow-sm p-6">
                    <h3 class="text-lg font-semibold mb-4 pb-2 border-b border-gray-100">基本信息</h3>

                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label for="textbook-name" class="block text-sm font-medium text-gray-700 mb-1">教材名称 <span
                                    class="text-red-500">*</span></label>
                            <input type="text" id="textbook-name" value="人教版数学七年级"
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">
                        </div>

                        <div>
                            <label for="textbook-id" class="block text-sm font-medium text-gray-700 mb-1">教材ID</label>
                            <input type="text" id="textbook-id" value="TEXT-001" readonly
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">
                        </div>

                        <div>
                            <label for="subject" class="block text-sm font-medium text-gray-700 mb-1">学科 <span
                                    class="text-red-500">*</span></label>
                            <select id="subject"
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors appearance-none bg-white">
                                <option value="math" selected>数学</option>
                                <option value="chinese">语文</option>
                                <option value="english">英语</option>
                                <option value="physics">物理</option>
                                <option value="chemistry">化学</option>
                                <option value="biology">生物</option>
                                <option value="history">历史</option>
                                <option value="geography">地理</option>
                                <option value="politics">政治</option>
                            </select>
                        </div>

                        <div>
                            <label for="grade" class="block text-sm font-medium text-gray-700 mb-1">年级 <span
                                    class="text-red-500">*</span></label>
                            <select id="grade"
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors appearance-none bg-white">
                                <option value="1">一年级</option>
                                <option value="2">二年级</option>
                                <option value="3">三年级</option>
                                <option value="4">四年级</option>
                                <option value="5">五年级</option>
                                <option value="6">六年级</option>
                                <option value="7" selected>七年级</option>
                                <option value="8">八年级</option>
                                <option value="9">九年级</option>
                                <option value="10">高一</option>
                                <option value="11">高二</option>
                                <option value="12">高三</option>
                            </select>
                        </div>

                        <div>
                            <label for="publisher" class="block text-sm font-medium text-gray-700 mb-1">出版社 <span
                                    class="text-red-500">*</span></label>
                            <input type="text" id="publisher" value="人民教育出版社"
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">
                        </div>

                        <div>
                            <label for="publish-date" class="block text-sm font-medium text-gray-700 mb-1">出版日期</label>
                            <input type="date" id="publish-date" value="2022-06-15"
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">
                        </div>
                    </div>

                    <div class="mt-6">
                        <label for="description" class="block text-sm font-medium text-gray-700 mb-1">教材描述</label>
                        <textarea id="description" rows="4"
                            class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">本教材是根据教育部最新课程标准编写的七年级数学教材，内容涵盖了有理数、代数式、一元一次方程、几何初步等知识点，注重培养学生的数学思维和解决问题的能力。</textarea>
                    </div>
                </div>

                <!-- 章节结构 -->
                <!--<div class="bg-white rounded-lg shadow-sm p-6">
                    <div class="flex items-center justify-between mb-4 pb-2 border-b border-gray-100">
                        <h3 class="text-lg font-semibold">章节结构</h3>
                        <button class="text-primary hover:text-primary/80 text-sm font-medium flex items-center">
                            <i class="fa fa-plus-circle mr-1"></i> 添加章节
                        </button>
                    </div>
                    
                    <div class="space-y-4">
                        <div class="border border-gray-200 rounded-lg overflow-hidden">
                            <div class="bg-gray-50 px-4 py-3 flex items-center justify-between">
                                <div class="flex items-center">
                                    <i class="fa fa-chevron-down text-gray-400 mr-2 cursor-pointer"></i>
                                    <span class="font-medium">第一章：有理数</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="添加小节">
                                        <i class="fa fa-plus"></i>
                                    </button>
                                    <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="编辑章节">
                                        <i class="fa fa-pencil"></i>
                                    </button>
                                    <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除章节">
                                        <i class="fa fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                            
                            <div class="pl-8 border-t border-gray-100">
                                <div class="px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition-colors">
                                    <div class="flex items-center">
                                        <span class="text-gray-600">1.1 正数和负数</span>
                                    </div>
                                    <div class="flex items-center space-x-2">
                                        <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="编辑小节">
                                            <i class="fa fa-pencil"></i>
                                        </button>
                                        <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除小节">
                                            <i class="fa fa-trash"></i>
                                        </button>
                                    </div>
                                </div>
                                
                                <div class="px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition-colors">
                                    <div class="flex items-center">
                                        <span class="text-gray-600">1.2 有理数</span>
                                    </div>
                                    <div class="flex items-center space-x-2">
                                        <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="编辑小节">
                                            <i class="fa fa-pencil"></i>
                                        </button>
                                        <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除小节">
                                            <i class="fa fa-trash"></i>
                                        </button>
                                    </div>
                                </div>
                                
                                <div class="px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition-colors">
                                    <div class="flex items-center">
                                        <span class="text-gray-600">1.3 有理数的加减法</span>
                                    </div>
                                    <div class="flex items-center space-x-2">
                                        <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="编辑小节">
                                            <i class="fa fa-pencil"></i>
                                        </button>
                                        <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除小节">
                                            <i class="fa fa-trash"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
        
                        <div class="border border-gray-200 rounded-lg overflow-hidden">
                            <div class="bg-gray-50 px-4 py-3 flex items-center justify-between">
                                <div class="flex items-center">
                                    <i class="fa fa-chevron-down text-gray-400 mr-2 cursor-pointer"></i>
                                    <span class="font-medium">第二章：整式的加减</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="添加小节">
                                        <i class="fa fa-plus"></i>
                                    </button>
                                    <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="编辑章节">
                                        <i class="fa fa-pencil"></i>
                                    </button>
                                    <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除章节">
                                        <i class="fa fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                            
                            <div class="pl-8 border-t border-gray-100">
                                <div class="px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition-colors">
                                    <div class="flex items-center">
                                        <span class="text-gray-600">2.1 整式</span>
                                    </div>
                                    <div class="flex items-center space-x-2">
                                        <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="编辑小节">
                                            <i class="fa fa-pencil"></i>
                                        </button>
                                        <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除小节">
                                            <i class="fa fa-trash"></i>
                                        </button>
                                    </div>
                                </div>
                                
                                <div class="px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition-colors">
                                    <div class="flex items-center">
                                        <span class="text-gray-600">2.2 整式的加减</span>
                                    </div>
                                    <div class="flex items-center space-x-2">
                                        <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="编辑小节">
                                            <i class="fa fa-pencil"></i>
                                        </button>
                                        <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除小节">
                                            <i class="fa fa-trash"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                    
                        <div class="border border-gray-200 rounded-lg overflow-hidden">
                            <div class="bg-gray-50 px-4 py-3 flex items-center justify-between">
                                <div class="flex items-center">
                                    <i class="fa fa-chevron-right text-gray-400 mr-2 cursor-pointer"></i>
                                    <span class="font-medium">第三章：一元一次方程</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="添加小节">
                                        <i class="fa fa-plus"></i>
                                    </button>
                                    <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="编辑章节">
                                        <i class="fa fa-pencil"></i>
                                    </button>
                                    <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除章节">
                                        <i class="fa fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-6 text-center">
                        <button class="text-primary hover:text-primary/80 text-sm font-medium flex items-center mx-auto">
                            <i class="fa fa-upload mr-1"></i> 导入章节结构
                        </button>
                    </div>
                </div>-->
                
                <!-- 教材封面 -->
                <div class="bg-white rounded-lg shadow-sm p-6">
                    <h3 class="text-lg font-semibold mb-4 pb-2 border-b border-gray-100">教材封面</h3>

                    <div class="text-center">
                        <div
                            class="border-2 border-dashed border-gray-300 rounded-lg p-4 mb-4 hover:border-primary transition-colors cursor-pointer bg-gray-50">
                            <img src="https://picsum.photos/id/24/300/400" alt="教材封面"
                                class="max-w-full h-auto rounded mx-auto">
                        </div>

                        <button
                            class="w-full bg-gray-100 hover:bg-gray-200 text-gray-800 px-4 py-2 rounded-lg transition-colors flex items-center justify-center">
                            <i class="fa fa-upload mr-2"></i> 更换封面
                        </button>

                        <p class="text-xs text-gray-500 mt-2">支持JPG、PNG格式，建议尺寸400×600像素</p>
                    </div>
                </div>
            </div>

            <!-- 右侧：版本与资源 -->
            <div class="space-y-6">
                <!-- 当前版本信息 -->
                <div class="bg-white rounded-lg shadow-sm p-6">
                    <h3 class="text-lg font-semibold mb-4 pb-2 border-b border-gray-100">当前版本</h3>

                    <div class="space-y-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">版本号</label>
                            <input type="text" value="v2.3.1"
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">
                        </div>

                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">版本描述</label>
                            <textarea rows="3"
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">2023年秋季学期修订版，修正了部分例题错误，优化了章节顺序。</textarea>
                        </div>

                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">更新日期</label>
                            <input type="date" value="2023-06-15"
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">
                        </div>

                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">更新人</label>
                            <input type="text" value="张老师" readonly
                                class="w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors">
                        </div>

                        <div class="pt-2">
                            <button
                                class="w-full bg-primary/10 hover:bg-primary/20 text-primary px-4 py-2 rounded-lg transition-colors flex items-center justify-center">
                                <i class="fa fa-copy mr-2"></i> 创建新版本
                            </button>
                        </div>
                    </div>
                </div>

                <!-- 附加资源 -->
                <div class="bg-white rounded-lg shadow-sm p-6">
                    <div class="flex items-center justify-between mb-4 pb-2 border-b border-gray-100">
                        <h3 class="text-lg font-semibold">附加资源</h3>
                        <button class="text-primary hover:text-primary/80 text-sm font-medium">
                            <i class="fa fa-plus-circle mr-1"></i> 添加
                        </button>
                    </div>

                    <div class="space-y-3">
                        <div
                            class="flex items-center justify-between p-3 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">
                            <div class="flex items-center">
                                <div
                                    class="w-10 h-10 bg-blue-100 rounded flex items-center justify-center text-blue-500 mr-3">
                                    <i class="fa fa-file-pdf-o"></i>
                                </div>
                                <div>
                                    <p class="text-sm font-medium">教师教学参考.pdf</p>
                                    <p class="text-xs text-gray-500">2.4 MB</p>
                                </div>
                            </div>
                            <div class="flex items-center space-x-2">
                                <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="下载">
                                    <i class="fa fa-download"></i>
                                </button>
                                <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div
                            class="flex items-center justify-between p-3 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">
                            <div class="flex items-center">
                                <div
                                    class="w-10 h-10 bg-green-100 rounded flex items-center justify-center text-green-500 mr-3">
                                    <i class="fa fa-file-powerpoint-o"></i>
                                </div>
                                <div>
                                    <p class="text-sm font-medium">课件PPT合集.pptx</p>
                                    <p class="text-xs text-gray-500">8.7 MB</p>
                                </div>
                            </div>
                            <div class="flex items-center space-x-2">
                                <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="下载">
                                    <i class="fa fa-download"></i>
                                </button>
                                <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div
                            class="flex items-center justify-between p-3 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">
                            <div class="flex items-center">
                                <div
                                    class="w-10 h-10 bg-yellow-100 rounded flex items-center justify-center text-yellow-500 mr-3">
                                    <i class="fa fa-file-excel-o"></i>
                                </div>
                                <div>
                                    <p class="text-sm font-medium">课后习题答案.xlsx</p>
                                    <p class="text-xs text-gray-500">1.2 MB</p>
                                </div>
                            </div>
                            <div class="flex items-center space-x-2">
                                <button class="text-gray-500 hover:text-primary p-1 transition-colors" title="下载">
                                    <i class="fa fa-download"></i>
                                </button>
                                <button class="text-gray-500 hover:text-red-500 p-1 transition-colors" title="删除">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 底部操作按钮 -->
        <div class="bg-white rounded-lg shadow-sm p-6 flex items-center justify-end space-x-3 sticky bottom-0">
            <button
                class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-6 py-2 rounded-lg transition-colors flex items-center">
                <i class="fa fa-eye mr-2"></i> 预览
            </button>
            <button
                class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-6 py-2 rounded-lg transition-colors flex items-center">
                <i class="fa fa-times mr-2"></i> 取消
            </button>
            <button
                class="bg-primary hover:bg-primary/90 text-white px-6 py-2 rounded-lg transition-colors flex items-center">
                <i class="fa fa-save mr-2"></i> 保存
            </button>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="bg-white border-t border-gray-200 py-4 mt-6">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="text-center md:text-left mb-4 md:mb-0">
                    <p class="text-sm text-gray-500">© 2025 教材资源管理系统. 保留所有权利.</p>
                </div>
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-500 hover:text-primary transition-colors">
                        <i class="fa fa-question-circle mr-1"></i> 帮助中心
                    </a>
                    <a href="#" class="text-gray-500 hover:text-primary transition-colors">
                        <i class="fa fa-file-text-o mr-1"></i> 使用条款
                    </a>
                    <a href="#" class="text-gray-500 hover:text-primary transition-colors">
                        <i class="fa fa-shield mr-1"></i> 隐私政策
                    </a>
                </div>
            </div>
        </div>
    </footer>

    <!-- JavaScript -->
    <script>
        // 导航栏滚动效果
        window.addEventListener('scroll', function () {
            const header = document.querySelector('header');
            if (window.scrollY > 10) {
                header.classList.add('shadow-md');
                header.classList.remove('shadow-sm');
            } else {
                header.classList.remove('shadow-md');
                header.classList.add('shadow-sm');
            }
        });

        // 章节折叠/展开功能
        document.addEventListener('DOMContentLoaded', function () {
            const toggles = document.querySelectorAll('.fa-chevron-down, .fa-chevron-right');
            toggles.forEach(toggle => {
                toggle.addEventListener('click', function () {
                    const chapter = this.closest('div[class*="bg-gray-50"]').nextElementSibling;
                    if (chapter) {
                        chapter.classList.toggle('hidden');
                        if (this.classList.contains('fa-chevron-down')) {
                            this.classList.remove('fa-chevron-down');
                            this.classList.add('fa-chevron-right');
                        } else {
                            this.classList.remove('fa-chevron-right');
                            this.classList.add('fa-chevron-down');
                        }
                    }
                });
            });

            // 为页面添加淡入效果
            document.body.classList.add('opacity-0');
            setTimeout(() => {
                document.body.classList.add('transition-opacity', 'duration-500');
                document.body.classList.remove('opacity-0');
            }, 100);
        });
    </script>
</body>

</html>